//
//  BSBPubButton.m
//  Baisebudejie
//
//  Created by apple on 16/3/18.
//  Copyright © 2016年 youminuo. All rights reserved.
//

#import "BSBPubButton.h"

@implementation BSBPubButton

- (BOOL)adjustsImageWhenHighlighted
{
    return NO;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.x = (self.width - self.imageView.width)/2;
    self.imageView.y = 0;
    self.titleLabel.x = 0;
    self.titleLabel.y = CGRectGetMaxY(self.imageView.frame)+ 10;
    self.titleLabel.width = self.width;
}
@end
